{% extends 'base.html' %}
{% block title %}首页{% endblock %}
{% block main %}
    <ul>
        {% for question in questions %}
            <li>
                <div class="avatar-group">
                    <span class="glyphicon glyphicon-bookmark avatar" aria-hidden="true"></span>
                </div>
                <div class="question-group">
                    <p class="question-title">
                        <a href="/detail/{{ question.id }}"><h4 class="page-title">{{ question.title }}</h4></a>
                    </p>
                    <p class="question-content">{{ question.content }}</p>
                </div>
                <div class="question-info">
                    <span class="question-author">{{ question.author.username }}</span>
                    <span class="question-time">{{ question.create_time }}</span>
                </div>
            </li>
        {% endfor %}
    </ul>
{% endblock %}